﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Model.Entities;

namespace Model.Mappings
{
    public partial class RMBT_FACILITY_ANTENNA_Map : ClassMap<RMBT_FACILITY_ANTENNA>
    {
        public RMBT_FACILITY_ANTENNA_Map()
        {
            Table("RMBT_FACILITY_ANTENNA");
            Id(x => x.ANTEID)
                .Length(36);

            Map(x => x.ANTEMODEL).Not.Nullable().Length(100);
            Map(x => x.ANTEMANU).Not.Nullable().Length(100);
            Map(x => x.STARTFREQ).Nullable().Precision(14).Scale(7);
            Map(x => x.ENDFREQ).Nullable().Precision(14).Scale(7);
            Map(x => x.ISACTIVEANTE).Nullable().Length(2);
            Map(x => x.POLARIZATION).Nullable().Length(2);
            Map(x => x.ISDIRECTIVEANTE).Nullable().Length(2);
            Map(x => x.ANTEDIRECTION).Not.Nullable().Precision(6).Scale(1);
            Map(x => x.ANTEHEIGHT).Nullable().Precision(5).Scale(2);
            DoEditableMappings();
        }
    }
}
